<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表格 背景总结</title>
    <style>
        table {
            width: 800px;
            height: 400px;
            background-color: pink
            
        }
    </style>
</head>
<body>
<table align="center" border="1"  cellpdding="0" cellspacing="0" >
    <tr>
        <th>属性</th>
        <th>作用</th>
        <th>值</th>
    </tr>
    <tr>
        <td>background-color</td>
        <td>背景颜色</td>
        <td>预定义的颜色值/十六进制rbg代码</td>
    </tr>
    <tr>
        <td>background-image</td>
        <td>背景图片</td>
        <td>url图片路径</td>
    </tr>
    <tr>
        <td>background-repeat</td>
        <td>是否平铺</td>
        <td>repeat/no-repeat/repeat-x/repeat-y</td>
    </tr>
    <tr>
        <td>background-position</td>
        <td>背景位置</td>
        <td>length/posiyion 分别是x和y坐标(x左y上，背景位置可自定义像素px）</td>
    </tr>
    <tr>
        <td>background-attachment</td>
        <td>背景附着</td>
        <td>scroll（背景滚动）/fixed（背景固定）</td>
    </tr>
    <tr>
        <td>背景简写</td>
        <td>书写更简单</td>
        <td>背景颜色背景图片地址背景平铺 背景浮动 背景位置</td>
    </tr>
    <tr>
        <td>背景色半透明</td>
        <td>背景颜色半透明</td>
        <td>background：rgba（0,0,0,0,.3);后面必须是四个值</td>
    </tr>
</table>
</body>
</html>